

package com.hazelcast.core;

import java.util.EventListener;

/**
 * Listener object for listening to lifecycle events of the Hazelcast instance
 *
 * @see com.hazelcast.core.LifecycleEvent
 * @see HazelcastInstance#getLifecycleService()
 */
@FunctionalInterface
public interface LifecycleListener extends EventListener {
    /**
     * Called when instance's state changes. No blocking calls should be made in this method.
     *
     * @param event the Lifecycle event
     */
    void stateChanged(LifecycleEvent event);
}
